package cn.hallele.leinsteining.ms.support.starter.components.data.entity;

import jakarta.persistence.*;
import lombok.*;

import java.io.Serial;
import java.io.Serializable;

/**
 * KeyGeneratorEntity
 *
 * @author anle5
 * @since 2024/8/11 20:43
 */
@Data
@Entity
@Builder
@EqualsAndHashCode
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "key_generator")
public class KeyGeneratorEntity implements Serializable {
    @Serial
    private static final long serialVersionUID = -5505314030746059967L;

    /**
     * id
     */
    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;

    /**
     * gen_name
     */
    @Column(name = "gen_name")
    private String genName;

    /**
     * gen_id
     */
    @Column(name = "gen_id")
    private String genId;

    /**
     * gen_value
     */
    @Column(name = "gen_value")
    private Long genValue;
}